package com.pearl.user.demo.controller;

import com.pearl.user.demo.feign.OrderFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author TD
 * @version 1.0
 * @date 2023/9/22
 */
@RequestMapping("/feign")
@RestController
public class FeignController {

    @Autowired
    OrderFeignClient orderFeignClient;

    @GetMapping("/getPort")
    public String getPort() {
        return orderFeignClient.getPort();
    }
}
